<%@ Page Language="C#" AutoEventWireup="true" CodeFile="EditNews1.aspx.cs" Inherits="Manage_Modle_News_EditNews1" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>无标题页</title>
    <link href="../../css/mainFrom.css" rel="stylesheet" type="text/css"/>
    <script language="javascript" src="../../js/common.js" type="text/javascript"></script>
    <script language="javascript" type="text/javascript" src="../../js/calendar.js"></script>
    <script language="javascript" type="text/javascript" src="../../js/ajaxCate.js"></script>
    <script language="javascript" type="text/javascript" src="../../js/HelpInfo.js"></script>
    
    <script language="javascript">
        function ShowImage(imgPath)
        {
            document.getElementById("imgShow").src = imgPath;
            objDiv = document.getElementById("divShowImage");
            objDiv.style.display = "block";
            objDiv.style.top=window.event.clientY + document.documentElement.scrollTop - document.documentElement.clientTop+'px';
            objDiv.style.left=window.event.clientX +document.documentElement.scrollLeft - document.documentElement.clientLeft+'px';
        }
        function HideImage()
        {
            document.getElementById("divShowImage").style.display = "none";
        }
    </script>
</head>
<body onload="setAddTime()">
 <script type="text/javascript" src="../../ckeditor/ckeditor.js" ></script>
    <form id="form1" runat="server">
    <div id="divShowImage" align="center" style="z-index:1000; display:none; background-color:#5b5a48; position:absolute; height:160px; width:160px;">
        <img id="imgShow" src="" width="160" height="160" />
    </div>
    <div id="incontent">
      <div class="clear"></div>
      <div class="contable">
        <div class="con-ico">
          <div class="con-fl">当前位置：<asp:Literal ID="litTitle" runat="server" Text="新闻信息管理"/><asp:Label ID="labNowJour" runat="server" ForeColor="red" />  &gt; 编辑信息</div>
          <div class="con-fr">
            <img src="../../images/img-fontid.gif" title="本页技术支持编号" alt="" />010500
          </div>
        </div>
        <div class="clear"></div>
        <div class="hr"></div>
        <div class="imgadnfont">
          <div class="float">
            <img src="../../images/fileprotect.gif" alt="" />
          </div>
          <div style="line-height: 20px;">
            在这里主要是管理网站上一些简单的，类似公司简介等的一些信息。可以通过这里在线的编辑页面内容，使得后期可以轻松的管理自己的信息。
             
          </div>
        </div>
        <div class="clear"></div>
          <div>
               <table width="100%" border="0" cellspacing="0" cellpadding="0" class="content-table">
                    <tr onmouseover="setbg2(this)" onmouseout="setbg1(this)">
                        <th class="thright">
                            属性项
                        </th>
                        <th class="thleft none">
                            属性值
                            <asp:Label ID="lab_Title" runat="server" ForeColor="Red"></asp:Label></th>
                    </tr>
                    <tr style="background: #F2F2F2;" onmouseover="setbg2(this)" onmouseout="setbg1(this)">
                        <td width="120" class="tdrightpad0" style="height: 24px">
                            所属栏目：
                        </td>
                        <td style="height: 24px"><asp:TextBox ID="txb_CateName" runat="server"></asp:TextBox>
                        </td>
                    </tr>
                    <tr style="background: #FAFAFA;" onmouseover="setbg2(this)" onmouseout="setbg1(this)">
    <td class="tdrightpad0">
        信息标题：
    </td>
    <td>
        <asp:TextBox ID="txtNews_Title" runat="server" Width="395px"></asp:TextBox>
        <asp:RequiredFieldValidator ID="rfv_News_Title"  runat="server"  
            ControlToValidate="txtNews_Title" 
            ErrorMessage="必填项">
        </asp:RequiredFieldValidator>
        
    </td>
</tr><tr style="background: #F2F2F2;" onmouseover="setbg2(this)" onmouseout="setbg1(this)">
    <td class="tdrightpad0">
        信息图片：
    </td>
    <td>
        <asp:TextBox ID="txtNews_Image" runat="server" Width="250px"></asp:TextBox>
        <input type="button" value="浏览" onclick="ShowImageDialog(840, 520, document.getElementById('txtNews_Image'))" />
        
        
    </td>
</tr><tr style="background: #FAFAFA;" onmouseover="setbg2(this)" onmouseout="setbg1(this)">
    <td class="tdrightpad0">
        信息视频：
    </td>
    <td>
        <asp:TextBox ID="txtNews_Video" runat="server" Width="250px"></asp:TextBox>
        <input type="button" value="浏览" onclick="ShowImageDialog(840, 520, document.getElementById('txtNews_Video'))" />
        
        
    </td>
</tr><tr style="background: #F2F2F2;" onmouseover="setbg2(this)" onmouseout="setbg1(this)">
    <td class="tdrightpad0">
        浏览次数：
    </td>
    <td>
        <asp:TextBox ID="txtNews_Count" runat="server" Width="95px" Text="0"></asp:TextBox>
        
        
    </td>
</tr><tr style="background: #FAFAFA;" onmouseover="setbg2(this)" onmouseout="setbg1(this)">
	        <td class="tdrightpad0" valign="top">
		        新闻内容：
	        </td>
	        <td><div>
        <asp:TextBox ID="fckNews_Content" runat="server" TextMode="MultiLine"  style="height:380px;"></asp:TextBox>
	<script type="text/javascript"> CKEDITOR.replace( '<%= fckNews_Content.ClientID %>',
                 {
                     filebrowserBrowseUrl: '../../ckfinder/ckfinder.html',
                     filebrowserImageBrowseUrl: '../../ckfinder/ckfinder.html?Type=Images',
                     filebrowserFlashBrowseUrl: '../../ckfinder/ckfinder.html?Type=Flash',
                     filebrowserUploadUrl: '../../ckfinder/core/connector/aspx/connector.aspx?command=QuickUpload&type=Files',
                     filebrowserImageUploadUrl: '../../ckfinder/core/connector/aspx/connector.aspx?command=QuickUpload&type=Images',
                     filebrowserFlashUploadUrl: '../../ckfinder/core/connector/aspx/connector.aspx?command=QuickUpload&type=Flash'
                 }
);</script>
      </div>
		        
		        
	        </td>
        </tr><tr style="background: #F2F2F2;" onmouseover="setbg2(this)" onmouseout="setbg1(this)">
    <td class="tdrightpad0">
        信息状态：
    </td>
    <td>
	<asp:RadioButtonList ID="rblNews_State" runat="server" RepeatDirection="Horizontal"
            RepeatLayout="Flow">
            <asp:ListItem Value="0">&nbsp;&nbsp;关闭显示&nbsp;&nbsp;&nbsp;&nbsp;</asp:ListItem>
            <asp:ListItem Selected="True" Value="1">&nbsp;&nbsp;正常显示</asp:ListItem>
        </asp:RadioButtonList>
        
        
    </td>
</tr><tr style="background: #FAFAFA;" onmouseover="setbg2(this)" onmouseout="setbg1(this)">
    <td class="tdrightpad0">
        作者（编者）：
    </td>
    <td>
        <asp:TextBox ID="txtNews_Author" runat="server" Width="97px"></asp:TextBox>
        
        
    </td>
</tr><tr style="background: #F2F2F2;" onmouseover="setbg2(this)" onmouseout="setbg1(this)">
    <td class="tdrightpad0">
        来源：
    </td>
    <td>
        <asp:TextBox ID="txtNews_Source" runat="server" Width="259px"></asp:TextBox>
        
        
    </td>
</tr><tr style="background: #FAFAFA;" onmouseover="setbg2(this)" onmouseout="setbg1(this)">
    <td class="tdrightpad0">
        是否首页新闻：
    </td>
    <td>
	<asp:RadioButtonList ID="rblNews_IsIndex" runat="server" RepeatDirection="Horizontal"
            RepeatLayout="Flow">
            <asp:ListItem Selected="True" Value="0">&nbsp;&nbsp;否&nbsp;&nbsp;&nbsp;&nbsp;</asp:ListItem>
            <asp:ListItem Value="1">&nbsp;&nbsp;是</asp:ListItem>
        </asp:RadioButtonList>
        
        
    </td>
</tr><tr style="background: #F2F2F2;" onmouseover="setbg2(this)" onmouseout="setbg1(this)">
    <td class="tdrightpad0">
        是否图片新闻：
    </td>
    <td>
	<asp:RadioButtonList ID="rblNews_IsImage" runat="server" RepeatDirection="Horizontal" RepeatLayout="Flow">
		<asp:ListItem Selected="True" Value="0">&nbsp;&nbsp;否&nbsp;&nbsp;&nbsp;&nbsp;</asp:ListItem>
        	<asp:ListItem Value="1">&nbsp;&nbsp;是</asp:ListItem>
        </asp:RadioButtonList>
        
        
    </td>
</tr><tr style="background: #FAFAFA;" onmouseover="setbg2(this)" onmouseout="setbg1(this)">
    <td class="tdrightpad0">
        是否链接新闻：
    </td>
    <td>
        <asp:RadioButtonList ID="rbl_News_IsUrl" runat="server" RepeatDirection="Horizontal"
             RepeatLayout="Flow">
             <asp:ListItem Selected="True" Value="0">&nbsp;&nbsp;否&nbsp;&nbsp;&nbsp;&nbsp;</asp:ListItem>
             <asp:ListItem Value="1">&nbsp;&nbsp;是</asp:ListItem>
        </asp:RadioButtonList>
        
        
    </td>
</tr><tr style="background: #F2F2F2;" onmouseover="setbg2(this)" onmouseout="setbg1(this)">
    <td class="tdrightpad0">
        链接地址：
    </td>
    <td>
        <asp:TextBox ID="txtNews_Url" runat="server" Width="324px" Text="http://"></asp:TextBox>
        
        
    </td>
</tr><tr style="background: #FAFAFA;" onmouseover="setbg2(this)" onmouseout="setbg1(this)">
    <td class="tdrightpad0">
        打开方式：
    </td>
    <td>
	<asp:RadioButtonList ID="rblNews_Target" runat="server" RepeatDirection="Horizontal" RepeatLayout="Flow">
            <asp:ListItem Selected="True" Value="_balnk">&nbsp;&nbsp;新建页面&nbsp;&nbsp;&nbsp;&nbsp;</asp:ListItem>
            <asp:ListItem Value="_self">&nbsp;&nbsp;本页显示</asp:ListItem>
        </asp:RadioButtonList>
        
        
    </td>
</tr><tr style="background: #F2F2F2;" onmouseover="setbg2(this)" onmouseout="setbg1(this)">
    <td class="tdrightpad0">
        信息关键字：
    </td>
    <td>
        <asp:TextBox ID="txtNews_Tags" runat="server" Width="250px"></asp:TextBox>
        
        
    </td>
</tr><tr style="background: #FAFAFA;" onmouseover="setbg2(this)" onmouseout="setbg1(this)">
    <td class="tdrightpad0">
        发布时间：
    </td>
    <td>
        <asp:TextBox ID="txtNews_AddTime" runat="server"></asp:TextBox>&nbsp;
        <img style="CURSOR: hand" onclick="setday(document.getElementById('txtNews_AddTime'))" 
src="../../images/calendar.gif" align="absMiddle"/>
        <asp:RequiredFieldValidator ID="rfv_News_AddTime"  runat="server"  
            ControlToValidate="txtNews_AddTime" 
            ErrorMessage="必填项">
        </asp:RequiredFieldValidator>
        
    </td>
</tr>
                    <tr>
                        <td class="tdrightpad0" id="href-blue">&nbsp;
                            </td>
                        <td class="food">
                            <asp:Button ID="btnSave" runat="server" Text="保  存" CssClass="button" OnClick="btnSave_Click"/>
                            &nbsp;<input type="reset" name="btnCancel" value="取  消" id="btnCancel" class="button" />
                            &nbsp;<asp:Button ID="btnDel" runat="server" Text="删  除" CssClass="button" OnClick="btnDel_Click"/>
                            &nbsp;<asp:Button ID="btnCopy" runat="server" Text="复 制" CssClass="button" OnClick="btnCopy_Click"/>
                         </td>
                    </tr>
                </table>  
          </div>
        </div>

    </div>
    <div id="divMsg" style="display:none; z-index:100; position:absolute; width:200px;">
        <table border="0" cellpadding="0" cellspacing="0">
            <tr style="background-image:url(../../images/msg_top_1.gif);">
                <td><img src="../../images/msg_left_1.gif" alt="" /></td>
                <td><img src="../../images/msg_center_1.gif" alt="" /></td>
                <td></td>
                <td><img src="../../images/msg_right_1.gif" alt="" /></td>
            </tr>
            <tr>
                <td style="background-image:url(../../images/msg_left_3.gif)"></td>
                <td colspan="2" style="background-image:url(../../images/msg_bg.gif);">
                    <div id="divMessage">提示信息!</div>
                </td>
                <td style="background-image:url(../../images/msg_right_3.gif)"></td>
            </tr>
            <tr style="background-image:url(../../images/msg_right_4.gif)">
                <td><img src="../../images/msg_left_2.gif" alt="" /></td>
                <td style="width:51px;"><img src="../../images/msg_center_2.gif" alt="" /></td>
                <td></td>
                <td><img src="../../images/msg_right_2.gif" alt="" /></td>
            </tr>
        </table>
    </div>
    </form>
</body>
    <script language="javascript" type="text/javascript">
        parent.$('IFRAME_windowTab_<%=Request.QueryString["CatID"]%>').style.height = (document.body.scrollHeight > 560 ? document.body.scrollHeight : 560);
    </script>
</html>
